
<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:50px;"><Btn class="BtnSave" value="保存" ng-click="btnSave()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn value="放弃" ng-click="btnCancel()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
  <div class="LableDiv" style="width:50px;">
    <BtnFind DisplayName="查找" WindowTitle="角色" change="btnFindChange()" module="Module.Role" OrderBy="{Code: 1}">
      <Column type="0" width="150px" displayname="编码" valuefield="Code"></Column>
      <Column type="textbox" width="150px" displayname="名称" valuefield="Name"></Column>
      <Column type="CheckBox" width="286px" displayname="生效" valuefield="IsEffective"></Column>
    </BtnFind>
  </div>
  <div class="LableDiv" style="width:60px;"><Btn value="列表" ng-click="btnList()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn value="首页" ng-click="btnFirstPage()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn value="上页" ng-click="btnPrePage()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn value="下页" ng-click="btnNextPage()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn value="末页" ng-click="btnLastPage()"></Btn></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label>编码</Label></div>
  <div class="InputDiv"><TextBox value="Module.Role.FocusedRecord.Code" isempty="false"></TextBox></div>
  <div class="LableDiv"><Label>名称</Label></div>
  <div class="InputDiv"><TextBox value="Module.Role.FocusedRecord.Name"></TextBox></div>
  <div class="LableDiv"><Label>生效</Label></div>
  <div class="InputDiv" style="width:40%;"><CheckBox value="Module.Role.FocusedRecord.IsEffective"></CheckBox></div>
</div>

<div class="row RowSpace" style="margin-top:20px;">
  <DataGrid module="Module._DisplayMenu" cellvaluechange="cellValueChange(columnName, newValue, oldValue)" height="400px">
      <ReferColumn EntityName="Menu" beforeshow="refBeforeShow(refScope)" DisplayName="菜单" Condition="{Parent: {$ne: null}}" Populate="{path: 'Parent', select: 'Name'}" OrderBy="{Code: 1}" width="200px" WindowTitle="菜单" KeyField="MenuId" ValueField="MenuCode" TextField="MenuName" BindKeyField="_id" BindValueField="Code" BindTextField="Name">
        <Column type="0" width="100px" DisplayName="主菜单" valuefield="Parent.Name"></Column>
        <Column type="0" width="100px" DisplayName="编码" valuefield="Code"></Column>
        <Column type="textbox" width="100px" DisplayName="名称" valuefield="Name"></Column>
        <Column type="TextBox" width="200px" DisplayName="URL" valuefield="URL"></Column>
      </ReferColumn>
      <TextBoxColumn displayname="主菜单" IsEdit="false" width="200px" valuefield="ParentName"></TextBoxColumn>  
      <TextBoxColumn displayname="URL" IsEdit="false" width="200px" valuefield="URL"></TextBoxColumn>
  </DataGrid>
</div>
